package io.github.cisumer.mybatis.extra.fill;

import org.apache.ibatis.reflection.MetaObject;

/**
 * If a field in a entity on @TableField(fill=FieldFill.INSERT) , you can create a Class for fill this field when the entity before insert.<br/>
 * This Class is a implementation InsertFill and makesure the Class is in the ApplicationContext's container.
 * @author github.com/cisumer
 *
 */
public interface InsertFill extends FillHandler{
    /**
     * 插入元对象字段填充（用于插入时对公共字段的填充）
     *
     * @param metaObject 元对象
     */
    void insertFill(MetaObject metaObject);
}
